Skip to content

fix(app): bug dock auto-dismisses when session vanishes externally (amicode#296) - #151

Merged
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
amico/issue-296-bug-dock-preflight
Aug 9, 2026
Merged

fix(app): bug dock auto-dismisses when session vanishes externally (amicode#296)#151
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
amico/issue-296-bug-dock-preflight

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

Summary

Layer 2 of the bug-dock wedge fix (amicode#296): a reactive liveness effect in session-bug-dock.tsx watches the synced session map. If the dock's current sessionID disappears from serverSync().session.data.info (because the extension deleted it after a failed arm), the dock auto-dismisses silently — no user action required, no wedged composer.

Changes

packages/app/src/pages/session/composer/session-bug-dock.tsx

  • New createEffect that fires when the dock is in "chat" phase: if the sessionID is no longer in the synced session map, calls controller.requestClose()
  • No new HTTP calls — rides the existing serverSync subscription
  • No toast (the extension already showed an actionable error)

Companion PR

Testing

  • tsc --noEmit: clean
  • Bug dock controller tests: 27/27 pass

Closes harmoniqs/amicode#296

…micode#296)

Layer 2 of the fix: a reactive liveness effect watches the synced session
map — if the dock's current sessionID disappears (arm-failure cleanup by
the extension, or any unexpected deletion), auto-dismiss silently. No new
HTTP calls; rides the existing serverSync subscription. No toast (the
extension already showed one).

This prevents the composer from wedging in bug-report mode after the
extension deletes a session that failed to arm.
@jeonghun-jj-lee
jeonghun-jj-lee force-pushed the amico/issue-296-bug-dock-preflight branch from 9cb80bf to aec89c9 Compare August 9, 2026 03:31
@jeonghun-jj-lee
jeonghun-jj-lee merged commit d1ea581 into local/amicode Aug 9, 2026
1 of 4 checks passed
@jeonghun-jj-lee
jeonghun-jj-lee deleted the amico/issue-296-bug-dock-preflight branch August 9, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug dock: composer wedges when the server can't arm report-a-bug (staged-skill drift)

1 participant